


dict={"name":"zs","age":18,"city":"深圳","tel":"1362626627"}
list = sorted(dict.items(),key=lambda i:i[0], reverse=False)
print("sorted根据字典键排序",list)

new_dict = {}
for i in list:
    print(i[0])
    print(i[1])
    new_dict[i[0]] = i[1]
print("新字典", new_dict)